Skip to content

NUTCH-3141 Cache Hadoop Counter References in Hot Paths - #878

Merged
lewismc merged 2 commits into
apache:masterfrom
lewismc:NUTCH-3141
Jan 8, 2026
Merged

lewismc merged 2 commits into
apache:masterfrom
lewismc:NUTCH-3141

Conversation

@lewismc

@lewismc lewismc commented Dec 26, 2025 •

Copy link
Copy Markdown
Member

This is a patch for NUTCH-3141. The cache pattern is already implemented in FetcherThread so this PR introduces more consistency across the codebase.
Additionally, I discovered some classes (SitemapProcessor.java, CrawlDb.java and DeduplicationJob.java) still used hardcoded strings to lookup counters, so I replaced these instances with NutchMetrics constants for a cleaner consistent implementation.

@lewismc lewismc self-assigned this Dec 26, 2025

@sebastian-nagel sebastian-nagel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @lewismc! Looks good to me.

@lewismc
lewismc merged commit 66f678e into apache:master Jan 8, 2026
8 of 10 checks passed
sebastian-nagel pushed a commit to commoncrawl/nutch that referenced this pull request Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants